<template>
	<div style="border: 1px solid green;margin: 20px;">
		孙子期末考试得分：{{message}}
		<button @click="redbox">给爷爷一个红包</button>
		<input v-focus />
		<button @click="changeStore">修改store{{store.age}}</button>
	</div>
</template>

<script setup>
	import { store } from './user.js'
	import { inject } from 'vue'
	const message = inject('message','加载中')
	const redbox = inject('redbox','')
	const vFocus = {
	  mounted: (el) => el.focus()
	}
	let changeStore = function(){
		// store.age++
		store.increment()
	}
	
</script>

<style>

</style>